
const model =require('../../../dao/model/model')
const { baseService2 } = require('../../baseService2')

/* 
替换service
修改异常message
修改model
*/

/* 异常类 */
class companyServiceError extends Error {
    constructor(error,message='用户模块异常'){
        super()
        this.error = error
        this.message=message
    }
}


class companyService extends baseService2{

    static ins = new companyService()
    constructor(){
        super(model.company_model,companyServiceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new companyService()
        }
    }
}







module.exports={
    companyService
}
